//
//  RBGServiceContact.m
//  BateauGenerique
//
//  Created by Kevin De Jesus Ferreira on 31/05/2014.
//  Copyright (c) 2014 Kevin De Jesus Ferreira. All rights reserved.
//

#import "RBGServiceContact.h"
#import "Constantes.h"
#import "XMLParser.h"
#import "RBGConfigurationClientService.h"


@interface RBGServiceContact ()<ServiceDelegate>

@end

@implementation RBGServiceContact

-(void) getContact
{
    RBGConfigurationClientService * service = [[RBGConfigurationClientService alloc]init];
    service.delegate = self;
    
    // On récupére les paramétres
    service.typeService = [NSString stringWithFormat:@"%01d",contact];
    [service getDonnneesByUrl:URL_CLIENT_DETAIL andArguments:nil];
    
}

- (void) receiveDonneesService:(id)donnees fromService:(int)service{
    [self.delegate receiveDonneesContact:donnees andType:service];
}

- (void) receiveErreurService:(int)statut{
    [self.delegate receiveErreurContact:statut];
}
@end
